package com.qf.spring.service.impl;

import com.qf.spring.service.UserService;
import org.springframework.stereotype.Service;

import java.util.Random;

/**
 * @author 王博康
 * @version 1.0
 * @project 03_spring
 * @description: TODO
 * @date 2022/3/6 0:16 星期日
 */
@Service
public class UserServiceImpl implements UserService {
    @Override
    public void addUser() {
        System.err.println("UserServiceImpl类的addUser方法执行了...");
    }

    @Override
    public void updateUser() {
        System.err.println("UserServiceImpl类的updateUser方法执行了...");
        if (new Random().nextBoolean()){
            int i=1/0;
        }
    }
}
